/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author Cheng
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '/@/api/model/baseModel';

const { adminPath } = useGlobSetting();

export interface InFireNotification extends BasicModel<InFireNotification> {
  confirmTime?: string; //通知确认时间
  confirmed?: boolean; //是否确认
  fireAlarmId?: string; //火情通知Id
  fireId?: number; //关联火情Id
  linkageLevel?: string; //火情联级别
  notifierCode?: string; //通知人唯一编码
  notifierContent?: string; //通知内容
  notifierName?: string; //通知人姓名
  notifierPhone?: string; //通知人电话
  tid?: string; //主键ID，自动生成的唯一标识
  unitId?: string; //通知单位ID
  unitName?: string; //通知单位名称
}

export const InFireNotificationData = (params?: any, data?: InFireNotification | any) =>
  defHttp.postJson<InFireNotification>({ url: adminPath + '/management/inFireNotification/listData', params, data });


export const InFireNotification = (params?: any, data?: InFireNotification | any) =>
  defHttp.get<InFireNotification>({ url: adminPath + '/management/inFireNotification/confirmation', params, data });
